﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace OpenHelloGuokr
{
    public sealed class RegexLib
    {
        public const RegexOptions options = RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.Multiline;
        /// <summary>
        /// 头像图片前缀
        /// 2knJ0BK9X6m1WcxRHgREPYC0PNebPsK5uOY_amS5GdmgAAAAoAAAAEpQ
        /// </summary>
        public readonly static Regex AvatarName = new Regex(@"^[\w\-]{57}$", options);

        /// <summary>
        /// 用户名
        /// </summary>
        public readonly static Regex UserName = new Regex(@"[a-zA-Z0-9_\u4e00-\u9fa5]{3,10}", options);
        /// <summary>
        /// 用户ID数字
        /// </summary>
        public readonly static Regex UserIdNumber = new Regex(@"^\d{10}\d{0}$", options);
    }
}
